package com.bestcem.xm.member.entity.mysql;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author ming.xue <ming.xue@idiaoyan.com>
 * @desc 标签值标识
 * @date 2021-07-21
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class LabelValueId implements Serializable {

    public LabelValueId(String labelValueId, String labelId){
        this.labelId = labelId;
        this.id = labelValueId;
    }

    /**
     * 标签值标识
     */
    private String id;

    /**
     * 标签标识
     */
    @JsonProperty("label_id")
    @JSONField(name = "label_id")
    private String labelId;

    /**
     * 标签值
     */
    private String value;

    /**
     * 标签名称
     */
    private String labelName;
}
